//
//  FrequencyControl.m
//  SKPAD
//
//  Created by admin@amonline.com.cn on 15/5/13.
//  Copyright (c) 2015年 amo. All rights reserved.
//

#import "FrequencyControl.h"

@implementation FrequencyControl

//代码创建初始化
-(id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        //初始背景图层大小
        _frequencyBackground = [[FrequencyBackground alloc] initWithFrame:self.frame];
        //定义背景图层中心位置,背景中心就是控件中心frame
        [_frequencyBackground updateWithPosition:self.frame];
        [self.layer insertSublayer:_frequencyBackground.trackLayerBackground atIndex:0];
        [self.layer insertSublayer:_frequencyBackground.shapeLayer atIndex:1];
    }
    return  self;
}

@end